package com.mindtalk.screen;

import java.util.ArrayList;

import com.mindtalk.R;
import com.mindtalk.helper.MyChannelsAdapter;
import com.mindtalk.transferdata.MyChannelsData;
import com.mindtalk.transferdata.Transferdata;

import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;

public class MyChannels extends ListActivity {

	
	/* Daftar Variable */
	
	/*
	 *  List Nama Channel yang Dimiliki oleh User Sekarang
	 *  */
	private ArrayList<MyChannelsData> channels = new ArrayList<MyChannelsData>();
	/*
	 * Data Diri
	 * */
	private Transferdata userInformation;
	/*
	 * Adapter
	 * */
	MyChannelsAdapter adapter;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mychannels);
		ListView channelsList = (ListView)findViewById(android.R.id.list);
		//channelsList.setOnItemClickListener(this);
		adapter = new MyChannelsAdapter(this, channels, R.layout.mychannelsadapter, getLayoutInflater());		
		setListAdapter(adapter);
		
	}

}
